
package com.share.test.example.selenium;

import com.alibaba.fastjson.JSON;
import com.share.example.selenium.model.hzhc.hm.HmUserInfo;
import com.share.example.selenium.model.hzhc.task_v2.HmTask;
import com.share.example.selenium.model.hzhc.task_v2.TaskV2UserInfo;
import org.junit.Test;

import java.util.List;

public class Hcxx_Hm extends _TestBase {

    @Test
    public void main1() {
        //1.打开页面
        HmUserInfo hmUserInfo = hmLogin.fixLoginform(null, null);

        //2.跳转到任务页面
        TaskV2UserInfo taskUserInfo = taskv2Login.toTaskHomePage();

        String token = taskUserInfo.getToken();

        //3.打印任务列表
        List<HmTask> hmTasks = taskv2Login.listAllTask(token);
        System.out.println(JSON.toJSON(hmTasks));
    }
}
